package mc.web.decorators;

import java.util.Locale;
import java.util.ResourceBundle;
import mc.domain.Pacjent;

import org.displaytag.decorator.TableDecorator;

public class DetailsPacjentDekorator extends TableDecorator {
	
	Locale loc = new Locale("pl","PL");
	ResourceBundle res = ResourceBundle.getBundle("messages", loc);
	
	public String getLink1(){
		
	 Pacjent obj = (Pacjent)getCurrentRowObject();
	 int oid= obj.getId();
	 StringBuffer html = new StringBuffer();
	 
	 html.append("<input type=\"button\" onclick=\"window.location.href='");
	 html.append("szczegoly.html?id=");
	 html.append(oid);
	 html.append("'\""+"value=\""+res.getString("decorator.szczegoly")+"\"/>");
		
	  
	 return html.toString();
	
	} 

}
